﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Drawing;

namespace GeekShop.Tools
{
    public abstract class MouseBehaviour
    {
        #region Fields
        protected Point start;
        protected Picture picture;
        protected Graphics graphics;
        protected Bitmap preview;
        protected Bitmap buffer;
        #endregion

        #region Delegate Methods
        public virtual void MouseDown(object sender, MouseEventArgs e)
        {
            this.start = e.Location;
            this.graphics = ((PictureBox)sender).CreateGraphics();
            this.preview = (Bitmap)this.picture.Preview.Clone();
        }
        public abstract void MouseMove(object sender, MouseEventArgs e);
        public abstract void MouseUp(object sender, MouseEventArgs e);
        #endregion
    }
}
